package com.xiaobaibai.common;

import com.xiaobaibai.units.SmsUnit;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class QiniuCommon {

    public static String accessKey;

    public static String secretKey;

    public static String bucket;

    @Value("${QINIU.accessKey}")
    public void setAccessKey(String accessKey) {
        QiniuCommon.accessKey = accessKey;
    }

    @Value("${QINIU.secretKey}")
    public void setSecretKey(String secretKey) {
        QiniuCommon.secretKey = secretKey;
    }

    @Value("${QINIU.bucket}")
    public void setBucket(String bucket) {
        QiniuCommon.bucket = bucket;
    }
}
